package com.models;

import javax.persistence.*;
import java.util.Date;
import java.util.UUID;

/**
 * Created by Administrator on 2017/4/12.
 */

public class BaseEntity<TID> {

    private TID id;


    private java.util.Date createAt = new Date();


    private java.util.Date updateAt = new Date();

    private boolean logicDelete = false;


    public TID getId() {
        return id;
    }

    public void setId(TID id) {
        this.id = id;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public boolean isLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(boolean logicDelete) {
        this.logicDelete = logicDelete;
    }

}
